import request from '@/utils/request'

export const getParentList = (params) => request({
  url: '/user-service/partner/search',
  params
})
// 新增合作商
export const addParent = (data) => request({
  url: '/user-service/partner',
  method: 'POST',
  data
})
// 重置密码
export const resetPwd = (id) => request({
  url: `/user-service/partner/resetPwd/${id}`,
  method: 'put'
})
// 修改
export const editParent = (id) => request({
  url: `/user-service/partner/${id}`,
  method: 'put'
})
// 删除
export const delParent = (id) => request({
  url: `user-service/partner/${id}`,
  method: 'delete'
})
// 搜索
export const searchParent = (params) => request({
  url: 'user-service/partner/search',
  params
})
